package com.ytjj.qmyx.mall.mapper;

import com.ytjj.qmyx.mall.model.ProductQueryHistory;
import com.ytjj.qmyx.mall.model.ProductQueryHistoryExample;

import java.util.Date;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface ProductQueryHistoryMapper {
    long countByExample(ProductQueryHistoryExample example);

    int deleteByExample(ProductQueryHistoryExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(ProductQueryHistory record);

    int insertSelective(ProductQueryHistory record);

    List<ProductQueryHistory> selectByExampleWithBLOBs(ProductQueryHistoryExample example);

    List<ProductQueryHistory> selectByExample(ProductQueryHistoryExample example);

    ProductQueryHistory selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") ProductQueryHistory record, @Param("example") ProductQueryHistoryExample example);

    int updateByExampleWithBLOBs(@Param("record") ProductQueryHistory record, @Param("example") ProductQueryHistoryExample example);

    int updateByExample(@Param("record") ProductQueryHistory record, @Param("example") ProductQueryHistoryExample example);

    int updateByPrimaryKeySelective(ProductQueryHistory record);

    int updateByPrimaryKeyWithBLOBs(ProductQueryHistory record);

    int updateByPrimaryKey(ProductQueryHistory record);

    List<ProductQueryHistory> queryByParams(@Param("platform")String platform,@Param("channel") String channel, @Param("beginTime")Date beginTime, @Param("endTime")Date endTime);
}